package ${packageOutPath!""}.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Pageable;

import com.cykj.common.api.users.vo.Users;
import com.cykj.common.utils.PageHelper;
import ${packageOutPath!""}.vo.${bean}Vo;

public interface I${bean}Service {
	/**
	 * 查询单个
	 * @param id
	 * @return
	 */
	${bean}Vo getById(Integer id);

	/**
	 * 根据条件查询单个
	 * @param bean
	 * @return
	 */
	${bean}Vo getByCondition(final ${bean}Vo vo);

	/**
	 * 查询全部
	 * @param user
	 * @return
	 */
	List<${bean}Vo> queryAll(final Users user);
	
	/**
	 * 根据条件查询列表
	 * @param vo
	 * @return
	 */
	List<${bean}Vo> queryByCondition(final ${bean}Vo vo);
	
	/**
	 * 更新
	 * @param vo
	 * @param user
	 * @return
	 */
	Map<String, Object> update(${bean}Vo vo, Users user);
	
	/**
	 * 保存
	 * @param vo
	 * @param user
	 * @return
	 */
	Map<String, Object> save(${bean}Vo vo, Users user);
	
	/**
	 * 删除
	 * @param id
	 * @return
	 */
	Map<String, Object> deleteById(Integer id);
	
	/**
	 * 分页查询
	 * @param pageable
	 * @return
	 */
	PageHelper<${bean}Vo> queryPage(Pageable pageable,final ${bean}Vo vo);
	
	
}
